package it.polimi.TravelDream.web.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

@ManagedBean
@RequestScoped
public class LogoutBean {
		
	public String logout() {
		  FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
		    return "/index?faces-redirect=true";
		  }
	}


